package com.bauer.base.designpattern.singleton;

/**
 * @Author ：rui.wei
 * @Date ：Created in 10:37 2019/7/2
 * @Description：
 */
public class StaticInnerClassSingleton {


    public static StaticInnerClassSingleton getInstance() {

        return InstanceHolder.staticInnerClassSingleton;
    }

    /**
     * 私有化  构造方法
     */
    private StaticInnerClassSingleton() {
    }

    static class InstanceHolder {

        private static final StaticInnerClassSingleton staticInnerClassSingleton = new StaticInnerClassSingleton();


    }
}
